<template>
    <router-view/>
    <van-config-provider :theme="theme"></van-config-provider>
</template>

<style>
body {
    margin:0;
    /*background-color: #1c1c1e;*/
}
</style>
<script setup>
import {onMounted, ref} from 'vue';
const theme=ref('light')
import {useStore} from 'vuex';
const store = useStore();

onMounted(()=>{
    console.log('app - mounted')

    if(store.state.isLogin === 'true'){
        // console.log(1)
        store.commit("getAllTask")
        store.commit("getRoleList")
        store.commit("getMessages")

    }

})
</script>